<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<% 
String _basePath = request.getContextPath();
String ctx = request.getContextPath();

response.setContentType("application/vnd.ms-excel");
String filename = new String(("统计分析").getBytes(),"ISO-8859-1");
response.addHeader("Content-Disposition", "filename=" + filename + ".xls");
%>

<meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=utf-8" />
<table class="table-striped" border="1">
	<thead>
		<tr>
			<th width="80">专业</th>
			<th width="60">地区</th>
			<th width="150">项目</th>
			<th width="40">年度</th>
			<th width="60">客户</th>
			<th width="100">分公司</th>
			<th width="50">任务数</th>
		</tr>
	</thead>
	<c:forEach var="item" items="${list}" varStatus="status">
	<tbody>
		<tr>
	    	<td>${item.specialName}</td>
	    	<td>${item.areaName}</td>
	    	<td>${item.name}</td>
	    	<td>${item.year}</td>
	    	<td>${item.customerName}</td>
	    	<td>${item.organName}</td>
	    	<td>${item.taskCount}</td>
		</tr>
	</tbody>
	</c:forEach>
</table>
